package com.akk.module.app.model.request;


import org.apache.commons.lang.StringEscapeUtils;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;

public class AppBannerRequest  {

    private String bannerId;

    @NotNull(message = "banner标题不能为空")
    private String bannerTitle;

    private String bannerDesc;

    @NotNull(message = "banner链接不能为空")
    private String bannerUrl;

    private MultipartFile bannerImage;

    @NotNull(message = "appId不能为空")
    private String appId;

    private String bannerTag;

    public String getBannerId() {
        return bannerId;
    }

    public void setBannerId(String bannerId) {
        this.bannerId = bannerId;
    }

    public String getBannerTitle() {
        return bannerTitle;
    }

    public void setBannerTitle(String bannerTitle) {
        this.bannerTitle = bannerTitle;
    }

    public String getBannerDesc() {
        return bannerDesc;
    }

    public void setBannerDesc(String bannerDesc) {
        this.bannerDesc = bannerDesc;
    }

    public String getBannerUrl() {
        return bannerUrl;
    }

    public void setBannerUrl(String bannerUrl) {
        this.bannerUrl = StringEscapeUtils.unescapeHtml(bannerUrl);
    }

    public MultipartFile getBannerImage() {
        return bannerImage;
    }

    public void setBannerImage(MultipartFile bannerImage) {
        this.bannerImage = bannerImage;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getBannerTag() {
        return bannerTag;
    }

    public void setBannerTag(String bannerTag) {
        this.bannerTag = bannerTag;
    }
}
